package cn.slg.module.system.service.pk.utils;

import cn.slg.module.system.dal.dataobject.wujiang.WuJiangDO;

import java.util.List;
import java.util.stream.Collectors;

public class Collection {

    // 从一队武将中剔除自己
    public static List<WuJiangDO> exceptSelf(List<WuJiangDO> wuJiangDOs, WuJiangDO self) {
        return wuJiangDOs.stream().filter(wuJiangDO -> !self.equals(wuJiangDO)).collect(Collectors.toList());
    }
}
